| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRMouseDown function to handle the user's clicking the mouse button when the cursor is in a QuickTime VR movie for which mouse-down tracking is disabled.
OSErr QTVRMouseDown (QTVRInstanceqtvr,
Pointpt,
UInt32 when,
UInt16 modifiers,
UInt32*hotSpotID,
WindowPtr w);
The QTVRMouseDown function returns, in the long integer pointed to by the hotSpotID parameter, the ID of the hot spot in the QuickTime VR movie specified by the qtvr parameter that lies directly under the point specified by the pt parameter. If no hot spot lies under that point, the long integer is set to 0. QTVRMouseDown also performs any other tasks that are typically performed when the user clicks the mouse button when the cursor is in a QuickTime VR movie.
You need to call QTVRMouseDown only if you have disabled mouse-down tracking for the specified QuickTime VR movie.
Use QTVRSetMouseDownTracking (link) to change the mouse-down tracking state of a QuickTime VR movie. Use QTVRMouseStillDown (next) and QTVRMouseUp (link) to handle the mouse button's being held down and released.
| Previous | Chapter contents | Chapter top | Section top | Next |